package com.n2exp.discussionlogger.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import butterknife.ButterKnife;
import butterknife.InjectView;
import com.n2exp.discussionlogger.R;

/**
 * Created by yezersky on 3/1/15.
 */
public class LoggerAdapter extends RecyclerView.Adapter<LoggerAdapter.ViewHolder> {

    private Context mContext;

    public LoggerAdapter(Context mContext){
        this.mContext = mContext;
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.card_view_logger, parent, false);
        return new ViewHolder(view);
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 5;
    }

    public static class ViewHolder extends RecyclerView.ViewHolder{

        @InjectView(R.id.user_name)
        TextView userName;
        @InjectView(R.id.time)
        TextView time;
        @InjectView(R.id.start)
        Button start;
        @InjectView(R.id.info)
        Button info;

        public ViewHolder(View itemView) {
            super(itemView);
            ButterKnife.inject(this, itemView);
        }
    }
}
